<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>百顺通云-下载中心</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- 公用CSS文件引入 -->
        <jsp:include page="../../admin/commonCSS.jsp"></jsp:include>
        <!-- 系统维护css -->
		<link href="/css/admin/systemManager.css" type="text/css" rel="stylesheet"  type="text/css">
    </head>
    <body class="skin-blue">
        
		<!-- 公用头部 -->
        <jsp:include page="../../admin/commonHeader.jsp"></jsp:include>
        
        <div class="wrapper row-offcanvas row-offcanvas-left">
            
            <!-- 公用导航 -->
            <jsp:include page="../../admin/commonMenu.jsp"></jsp:include>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                      	系统维护列表
                        <small>下载中心列表</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                        <li class="active">系统维护</li>
                        <li class="active">下载中心</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content" id="userManager">
                    <!-- Small boxes (Stat box) -->
                    <div class="row fixrowscroll">
	                    <div class="operator">
	                    	<a href="/sysAdmin/downAdmin/addDownloadLink" class="btn btn-default addnew">新增</a>
						  	<button type="button" class="btn btn-default delete">删除</button>
						</div>
						<div class="bstable">
					  		<table class="table table-bordered" id="downloadTable">
						      <thead>
						        <tr>
						          <th style="width: 80px;">
									  <label><input type="checkbox" class="simple" value="">全选</label>
						          </th>
						          <th>序号</th>
						          <th>下载产品名称</th>
						          <th>安卓版</th>
						          <th>IOS版</th>
						          <th>PC版</th>
						          <th>桌面快捷方式</th>
						          <th>操作</th>
						        </tr>
						      </thead>
						      <tbody>
						       	  <c:if test="${goodsDownloadList.size() == 0}">
									<tr><td colspan="8">暂无数据，请添加过商品后再查看！</td></tr>
								  </c:if>
								  <c:if test="${goodsDownloadList.size() != 0}">
									<c:forEach items="${goodsDownloadList}" var="gd" varStatus="status">
										<tr>
											<td><input type="checkbox" class="simple" data-id="${gd.goodsDownloadId }"></td>
								          	<td>${ status.index + 1}</td>
								      		<td>${gd.goodsDownloadName}</td>
					      					<c:if test="${gd.isAndroid == 0}"><td><i class="fa fa-check"></i></td></c:if>
							      			<c:if test="${gd.isAndroid == 1}"><td><i class="fa fa-close"></i></td></c:if>
							      			<c:if test="${gd.isIos == 0}"><td><i class="fa fa-check"></i></td></c:if>
							      			<c:if test="${gd.isIos == 1}"><td><i class="fa fa-close"></i></td></c:if>
							      			<c:if test="${gd.isPc == 0}"><td><i class="fa fa-check"></i></td></c:if>
							      			<c:if test="${gd.isPc == 1}"><td><i class="fa fa-close"></i></td></c:if>
							      			<c:if test="${gd.isInk == 0}"><td><i class="fa fa-check"></i></td></c:if>
							      			<c:if test="${gd.isInk == 1}"><td><i class="fa fa-close"></i></td></c:if>
								      		<td data-id="${adminUser.adminId}">
								      			<a href="/sysAdmin/downAdmin/selectById/${gd.goodsDownloadId}"  class="btn btn-default edit">编辑</a>
								      			<a type="button" class="btn btn-default delete">删除</a>
								      		</td>
							      		</tr>
							      	</c:forEach>
							      </c:if>
						      </tbody>
						    </table>
				  		</div>
						
				
                    </div><!-- /.row -->
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->
		<script type="text/javascript">
			var currentMenu = 'systemManager';
		</script>
		<!-- 公用js文件引入 -->
        <jsp:include page="../../admin/commonJs.jsp"></jsp:include>

		<script src="/js/admin/systemManager/downloadManager.js"></script>
    </body>
</html>